using System.Collections;
using System.Collections.Generic;
using Newtonsoft.Json;
using Sirenix.OdinInspector;
using UnityEngine;

public class Test_AnimationCombo : MonoBehaviour
{
    public string UserInput;
    [Button]
    public void Interact(){
        var p = new LLMComboAnimation(){interactContext = UserInput};
        p.Generate();
    }
}

public class LLMComboAnimation : LLMInteractPairsBase
{
    public override string prompt => "你是一位Unity导演熟练使用Timeline,请你根据用户的输入编排一段动作序列(至少两段),主角是元气少女,请控制在时长5s之内以匹配语音时长," ;
    public override IJsonable JsonableObject => new JsonPack();

    public class JsonPack : IJsonable
    {
        public List<Clip> clips = new (){ new Clip() };
        
        public class Clip
        {
            public float start;
            public AnimationClip clip;
        }
    }
}
